package com.zyx.camunda.model.dto;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.camunda.bpm.model.bpmn.instance.FlowNode;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Yaxi.Zhang
 * @since 2022/9/21 00:48
 */
@Setter
@Getter
@ToString
public class FlowPath {
    public FlowPath() {
    }

    public FlowPath(FlowPath flowPath) {
        this.conditions = new ArrayList<>(flowPath.getConditions());
        this.flowPath = new ArrayList<>(flowPath.getFlowPath());
    }

    private List<String> conditions = new ArrayList<>();
    private List<FlowNode> flowPath = new ArrayList<>();
}
